<!doctype html>
<html>
<head>
    <title>API for class CSS (idxCMS: Flat Files Content Management Sysytem ver. 5.0)</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="generator" content="phpAPI 6.0 (https://github.com/Greenray/phpAPI/)">
    <link href="../style.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <div class="page">
        <div class="header center">
            <div class="content">
                idxCMS: Flat Files Content Management Sysytem ver. 5.0                <div class="logo_desc">Application Programming Interface</div>
            </div>
        </div>
        <div class="panel">
            <div class="content">
                <h1>Namespaces</h1>
<ul>
    <li><a href="../administration/package-summary.html">Administration</a></li>
    <li><a href="../catalogs/package-summary.html">Catalogs</a></li>
    <li><a href="../core/package-summary.html">Core</a></li>
    <li><a href="../forum/package-summary.html">Forum</a></li>
    <li><a href="../gallery/package-summary.html">Gallery</a></li>
    <li><a href="../no package/package-summary.html">No Package</a></li>
    <li><a href="../polls/package-summary.html">Polls</a></li>
    <li><a href="../posts/package-summary.html">Posts</a></li>
    <li><a href="../rss/package-summary.html">RSS</a></li>
    <li><a href="../rate/package-summary.html">Rate</a></li>
    <li><a href="../search/package-summary.html">Search</a></li>
    <li><a href="../statistics/package-summary.html">Statistics</a></li>
    <li><a href="../tagcloud/package-summary.html">Tagcloud</a></li>
    <li><a href="../template/package-summary.html">Template</a></li>
    <li><a href="../tools/package-summary.html">Tools</a></li>
    <li><a href="../user/package-summary.html">User</a></li>
</ul>
<h1>Namespace User</h1>
    <h2>Classes</h2>
    <ul>
            <li><a href="../template/css.html" title="Template \ CSS">CSS</a></li>
            <li><a href="../template/template.html" title="Template \ TEMPLATE">TEMPLATE</a></li>
        </ul>
            </div>
        </div>
        <div class="main">
            <div class="content">
                <nav class="menu_main center"><div class="menu">
            <ul>
                    <li><a href="../index.html">Overview</a></li>
                    <li><a href="../template/package-summary.html">Namespace</a></li>
                    <li class="active">Class</li>
                    <li><a href="../template/package-tree.html">Template\Tree</a></li>
                    <li><a href="../deprecated.html">Deprecated</a></li>
                    <li><a href="../todo.html">Todo</a></li>
                    <li><a href="../index-all.html">Index</a></li>
                </ul>
    </div>
    <div class="small_links">
        <a href="#details_fields">Fields</a> | <a href="#details_methods">Methods</a> | <a href="#details_constructor">Constructor</a>
    </div>
</nav>
                <hr />
<div class="package">Namespace Template</div>
<h1>Class CSS</h1>
<div id="list">
    <ul>
        <li><strong>CSS</strong></li></ul></li>    </ul>
</div>
<hr />
<p class="arguments">public  class <strong>CSS</strong></p>
<div class="comment" id="overview_description">CSS parser and optimizer.</div>
<div class="finfo">
    <table class="hid">
            <tr>
            <td class="hid left w_100">Program</td>
            <td class="hid right w_100 lilac">&nbsp;</td>
                            <td class="hid" colspan="2">idxCMS: Flat Files Content Management System</td>
                    </tr>
            <tr>
            <td class="hid left w_100">Version</td>
            <td class="hid right w_100 lilac">&nbsp;</td>
                            <td class="hid" colspan="2">5.0</td>
                    </tr>
            <tr>
            <td class="hid left w_100">Author</td>
            <td class="hid right w_100 lilac">&nbsp;</td>
                            <td class="hid" colspan="2">Victor Nabatov &lt;greenray.spb@gmail.com&gt;</td>
                    </tr>
            <tr>
            <td class="hid left w_100">Copyright</td>
            <td class="hid right w_100 lilac">&nbsp;</td>
                            <td class="hid" colspan="2">(c) 2011-2016 Victor Nabatov</td>
                    </tr>
            <tr>
            <td class="hid left w_100">License</td>
            <td class="hid right w_100 lilac">&nbsp;</td>
                            <td class="hid" colspan="2">Creative Commons Attribution-ShareAlike 4.0 International</td>
                    </tr>
            <tr>
            <td class="hid left w_100">File</td>
            <td class="hid right w_100 lilac">&nbsp;</td>
                            <td class="hid" colspan="2">classes/css.class.php</td>
                    </tr>
            <tr>
            <td class="hid left w_100">Overview</td>
            <td class="hid right w_100 lilac">&nbsp;</td>
                            <td class="hid" colspan="2">Reads css code, automatically inserts browser-specific prefixes and compresses
 the code with removing comments, two or more consecutive spaces,
 newline characters and tabs, spaces, if a curly bracket, colon,
 semicolon or comma is placed before or after them.
 Replaces image references within CSS with base64_encoded data.
 Replaces fonts (.woff, .woff2) references within CSS rule @font-face with base64_encoded data.
 Optimizes the color settings (#00ff77 =&gt; #0f7) and property values (0px =&gt; 0, -0.5 =&gt; -.5).
 Converts rgb(43, 92, 160), rgb(16.9%, 36.1%, 62.7%), hsl(214.9,57.6%,39.8%) to hex value (#2b5ca0).
 There is a possibility of caching the result.
 It is important to set the correct installation of access rights to the cache directory.</td>
                    </tr>
        </table>
</div>
    <h2 id="details_fields">Fields</h2>
            <div class="location">system/css.class.php at line 27</div>
        <pre class="arguments" id="config">private  array <strong><span class="green">$config</span></strong> = []</pre>
        <div class="details">Configuration data</div>
        <hr />
            <div class="location">system/css.class.php at line 30</div>
        <pre class="arguments" id="css">private  string <strong><span class="green">$css</span></strong> = <span class="red">""</span></pre>
        <div class="details">CSS code that is executing</div>
        <hr />
            <div class="location">system/css.class.php at line 33</div>
        <pre class="arguments" id="styles">private  mixed <strong><span class="green">$styles</span></strong> = [<br />        <span class="red">"align-content"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"align-items"</span>   => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"align-self"</span>    => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"animation"</span>                 => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"animation-delay"</span>           => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"animation-direction"</span>       => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"animation-duration"</span>        => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"animation-fill-mode"</span>       => [<span class="red">"-webkit-"</span>,<span class="red">""</span>],<br />        <span class="red">"animation-iteration-count"</span> => [<span class="red">"-webkit-"</span>,<span class="red">""</span>],<br />        <span class="red">"animation-name"</span>            => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"animation-play-state"</span>      => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"animation-timing-function"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"appearance"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"backface-visibility"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"border-end-color"</span>           => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"border-end-style"</span>           => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"border-end-width"</span>           => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"border-start-color"</span>         => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"border-start-style"</span>         => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"border-start-width"</span>         => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"border-image"</span>               => [<span class="red">"-o-"</span>, <span class="red">""</span>],<br />        <span class="red">"border-image-outset"</span>        => [<span class="red">"-o-"</span>, <span class="red">""</span>],<br />        <span class="red">"border-image-repeat"</span>        => [<span class="red">"-o-"</span>, <span class="red">""</span>],<br />        <span class="red">"border-image-source"</span>        => [<span class="red">"-o-"</span>, <span class="red">""</span>],<br />        <span class="red">"border-image-width"</span>         => [<span class="red">"-o-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"box-align"</span>            => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"box-decoration-break"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"box-direction"</span>        => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"box-flex"</span>             => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"box-flex-group"</span>       => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"box-lines"</span>            => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"box-ordinal-group"</span>    => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"box-orient"</span>           => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"box-pack"</span>             => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"box-reflect"</span>          => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"box-shadow"</span>           => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"box-sizing"</span>           => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"column-count"</span>        => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"column-fill"</span>         => [<span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"column-gap"</span>          => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"column-rule"</span>         => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"column-rule-color"</span>   => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"column-rule-style"</span>   => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"column-rule-width"</span>   => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"column-span"</span>         => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"column-width"</span>        => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"columns"</span>             => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"filter"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"flex-basis"</span>     => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"flex-direction"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"flex-flow"</span>      => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"flex-grow"</span>      => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"flex-shrink"</span>    => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"flex-wrap"</span>      => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"font-kerning"</span>           => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"font-variant-ligatures"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"fullscreen"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"grid"</span>                  => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-area"</span>             => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-column"</span>           => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-auto-columns"</span>     => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-auto-flow"</span>        => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-auto-rows"</span>        => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-column-end"</span>       => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-column-start"</span>     => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-row"</span>              => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-row-end"</span>          => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-row-start"</span>        => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-template-areas"</span>   => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-template-columns"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"grid-template-rows"</span>    => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"hyphens"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"image-rendering"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-ms-"</span>, <span class="red">"-o-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"mask-clip"</span>      => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"mask-composite"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"mask-image"</span>     => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"mask-origin"</span>    => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"mask-size"</span>      => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"object-fit"</span> => [<span class="red">"-o-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"opacity"</span> => [<span class="red">"-khtml-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"orient"</span> => [<span class="red">"-moz-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"perspective"</span>        => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"perspective-origin"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"ruby-position"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"scroll-snap-coordinate"</span>  => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"scroll-snap-destination"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"scroll-snap-points-x"</span>    => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"scroll-snap-points-y"</span>    => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"shape-image-threshold"</span>   => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"scroll-snap-type"</span>        => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"tab-size"</span>  => [<span class="red">"-moz-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"text-align-last"</span>       => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"text-decoration-color"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"text-decoration-line"</span>  => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"text-decoration-style"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"text-justify"</span>          => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"text-orientation"</span>      => [<span class="red">"-epub-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"transform"</span>        => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"transform-origin"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br />        <span class="red">"transform-style"</span>  => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"transition"</span>                 => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"transition-delay"</span>           => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"transition-duration"</span>        => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"transition-property"</span>        => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"transition-timing-function"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"linear-gradient"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br />        <span class="red">"radial-gradient"</span> => [<span class="red">"-webkit-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"repeating-linear-gradient"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-o-"</span>, <span class="red">""</span>],<br />        <span class="red">"repeating-radial-gradient"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-o-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"user-modify"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"user-select"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"writing-mode"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-ms-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"document"</span>  => [<span class="red">"-moz-"</span>, <span class="red">""</span>],<br />        <span class="red">"keyframes"</span> => [<span class="red">"-webkit-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-o-"</span>, <span class="red">""</span>],<br />        <span class="red">"viewport"</span> => [<span class="red">"-ms-"</span>, <span class="red">"-o-"</span>, <span class="red">""</span>],<br /><br />        <span class="red">"placeholder"</span> => [<span class="red">"-webkit-input-"</span>, <span class="red">"-moz-"</span>, <span class="red">"-ms-input-"</span>, <span class="red">""</span>],<br />        <span class="red">"selection"</span>   => [<span class="red">"-moz-"</span>, <span class="red">""</span>]<br />    ]</pre>
        <div class="details">No description</div>
        <hr />
        <h2 id="details_constructor">Constructor</h2>
    <div class="location">system/css.class.php at line 36</div>
    <code class="arguments" id="construct">public  void <strong>construct</strong>()</code>
    <div class="details">
            <p class="description">Class constructor.</p>
            </div>
    <h2 id="details_methods">Methods</h2>
            <div class="location">system/css.class.php at line 54</div>
        <code class="arguments" id="compress">public  string <strong>compress</strong> (<span class="lilac">string</span> <span class="blue">$file</span>)</code>
        <div class="details">
                    <p class="description">Class main method.<br /> Handles directive "@import".<br /> Generates CSS3 properties with browser-specific prefixes.<br /> Replaces images and fonts references with base64_encoded data.<br /> Optimizes the color settings (#00ff77 => #0f7) and property values (0px => 0, -0.5 => -.5).<br /> Converts rgb(43, 92, 160), rgb(16.9%, 36.1%, 62.7%), hsl(214.9,57.6%,39.8%) to hex value (#2b5ca0).<br /> Then removes unneeded characters, see comments.</p>
            <div class="finfo">
    <table class="hid">
            <tr>
            <td class="hid left w_100">Parameters</td>
            <td class="hid right w_100 lilac">string</td>
                            <td class="hid blue w_100">$file</td>
                <td class="hid">CSS file</td>
                    </tr>
            <tr>
            <td class="hid left w_100">Return</td>
            <td class="hid right w_100 lilac">string</td>
                            <td class="hid" colspan="2">Compressed CSS</td>
                    </tr>
        </table>
</div>
        </div>
        <hr />
            <div class="location">system/css.class.php at line 131</div>
        <code class="arguments" id="import">private  void <strong>import</strong> (<span class="lilac">string</span> <span class="blue">$dir</span>)</code>
        <div class="details">
                    <p class="description">Handles the rule "@import".<br /> Recognizes the rules:</p>
            <div class="finfo">
    <table class="hid">
            <tr>
            <td class="hid left w_100">Import</td>
            <td class="hid right w_100 lilac"></td>
                            <td class="hid" colspan="2">url(<span class="red">"dir/style.css"</span>);</td>
                    </tr>
            <tr>
            <td class="hid left w_100">&nbsp</td>
            <td class="hid right w_100 lilac"></td>
                            <td class="hid" colspan="2">url(<span class="red">"dir/style.css"</span>);</td>
                    </tr>
            <tr>
            <td class="hid left w_100">&nbsp</td>
            <td class="hid right w_100 lilac"></td>
                            <td class="hid" colspan="2">url(style.css);</td>
                    </tr>
            <tr>
            <td class="hid left w_100">Parameters</td>
            <td class="hid right w_100 lilac">string</td>
                            <td class="hid blue w_100">$dir</td>
                <td class="hid">CSS file's directory</td>
                    </tr>
        </table>
</div>
        </div>
        <hr />
            <div class="location">system/css.class.php at line 149</div>
        <code class="arguments" id="rgbToHex">protected  void <strong>rgbToHex</strong> ()</code>
        <div class="details">
                    <p class="description">Converts rgb(43, 92, 160) or rgb(16.9%, 36.1%, 62.7%) to hex value (#2b5ca0).</p>
                    </div>
        <hr />
            <div class="location">system/css.class.php at line 180</div>
        <code class="arguments" id="hslToHex">private  void <strong>hslToHex</strong> ()</code>
        <div class="details">
                    <p class="description">Converts hsl(214.9,57.6%,39.8%) to hex value (#2b5ca0).</p>
                    </div>
        <hr />
            <div class="location">system/css.class.php at line 212</div>
        <code class="arguments" id="toRgb">private  integer <strong>toRgb</strong> (<span class="lilac">integer</span> <span class="blue">$v1</span>, <span class="lilac">integer</span> <span class="blue">$v2</span>, <span class="lilac">integer</span> <span class="blue">$hue</span>)</code>
        <div class="details">
                    <p class="description">Helper function to convert hsl to rgb.</p>
            <div class="finfo">
    <table class="hid">
            <tr>
            <td class="hid left w_100">Parameters</td>
            <td class="hid right w_100 lilac">integer</td>
                            <td class="hid blue w_100">$v1</td>
                <td class="hid">Helper value</td>
                    </tr>
            <tr>
            <td class="hid left w_100">&nbsp</td>
            <td class="hid right w_100 lilac">integer</td>
                            <td class="hid blue w_100">$v2</td>
                <td class="hid">Helper value</td>
                    </tr>
            <tr>
            <td class="hid left w_100">&nbsp</td>
            <td class="hid right w_100 lilac">integer</td>
                            <td class="hid blue w_100">$hue</td>
                <td class="hid">Value of hue</td>
                    </tr>
            <tr>
            <td class="hid left w_100">Return</td>
            <td class="hid right w_100 lilac">integer</td>
                            <td class="hid" colspan="2">The result</td>
                    </tr>
        </table>
</div>
        </div>
        <hr />
            <div class="location">system/css.class.php at line 221</div>
        <code class="arguments" id="images">private  void <strong>images</strong> ()</code>
        <div class="details">
                    <p class="description">Replace images references with base64_encoded data.</p>
                    </div>
        <hr />
            <div class="location">system/css.class.php at line 229</div>
        <code class="arguments" id="fonts">private  void <strong>fonts</strong> ()</code>
        <div class="details">
                    <p class="description">Replace fonts .woff and .woff2 references with base64_encoded data.</p>
                    </div>
        <hr />
            <div class="location">system/css.class.php at line 242</div>
        <code class="arguments" id="encode">private  void <strong>encode</strong> (<span class="lilac">array</span> <span class="blue">$data</span>, <span class="lilac">string</span> <span class="blue">$mode</span>)</code>
        <div class="details">
                    <p class="description">Encodes image or font.</p>
            <div class="finfo">
    <table class="hid">
            <tr>
            <td class="hid left w_100">Parameters</td>
            <td class="hid right w_100 lilac">array</td>
                            <td class="hid blue w_100">$data</td>
                <td class="hid">Reference to image or font</td>
                    </tr>
            <tr>
            <td class="hid left w_100">&nbsp</td>
            <td class="hid right w_100 lilac">string</td>
                            <td class="hid blue w_100">$mode</td>
                <td class="hid">What to encode: image or font</td>
                    </tr>
        </table>
</div>
        </div>
        <hr />
            <div class="location">system/css.class.php at line 255</div>
        <code class="arguments" id="setPrefixes">private  void <strong>setPrefixes</strong> ()</code>
        <div class="details">
                    <p class="description">Generates browser-specific prefixes.</p>
                    </div>
        <hr />
            <div class="location">system/css.class.php at line 322</div>
        <code class="arguments" id="setPrefixesForRules">private  void <strong>setPrefixesForRules</strong> (<span class="lilac">array</span> <span class="blue">$rules</span>)</code>
        <div class="details">
                    <p class="description">Generates browser-specific prefixes for rules.</p>
            <div class="finfo">
    <table class="hid">
            <tr>
            <td class="hid left w_100">Parameters</td>
            <td class="hid right w_100 lilac">array</td>
                            <td class="hid blue w_100">$rules</td>
                <td class="hid">Array of founded rules in css file</td>
                    </tr>
        </table>
</div>
        </div>
        <hr />
            <div class="location">system/css.class.php at line 350</div>
        <code class="arguments" id="setPrefixesForPseudo">private  void <strong>setPrefixesForPseudo</strong> (<span class="lilac">array</span> <span class="blue">$pseudo</span>)</code>
        <div class="details">
                    <p class="description">Generates browser-specific prefixes for pseudoelements.</p>
            <div class="finfo">
    <table class="hid">
            <tr>
            <td class="hid left w_100">Parameters</td>
            <td class="hid right w_100 lilac">array</td>
                            <td class="hid blue w_100">$pseudo</td>
                <td class="hid">Array of founded rules in css file</td>
                    </tr>
        </table>
</div>
        </div>
        <hr />
            <div class="location">system/css.class.php at line 377</div>
        <code class="arguments" id="getFromCache">private  mixed <strong>getFromCache</strong> (<span class="lilac">string</span> <span class="blue">$file</span>)</code>
        <div class="details">
                    <p class="description">Gets a compiled file from the cache.</p>
            <div class="finfo">
    <table class="hid">
            <tr>
            <td class="hid left w_100">Parameters</td>
            <td class="hid right w_100 lilac">string</td>
                            <td class="hid blue w_100">$file</td>
                <td class="hid">CSS file</td>
                    </tr>
            <tr>
            <td class="hid left w_100">Return</td>
            <td class="hid right w_100 lilac">mixed</td>
                            <td class="hid" colspan="2">Data from cache or FALSE</td>
                    </tr>
        </table>
</div>
        </div>
        <hr />
                    <nav class="menu_main center"><div class="menu">
            <ul>
                    <li><a href="../index.html">Overview</a></li>
                    <li><a href="../template/package-summary.html">Namespace</a></li>
                    <li class="active">Class</li>
                    <li><a href="../template/package-tree.html">Template\Tree</a></li>
                    <li><a href="../deprecated.html">Deprecated</a></li>
                    <li><a href="../todo.html">Todo</a></li>
                    <li><a href="../index-all.html">Index</a></li>
                </ul>
    </div>
    <div class="small_links">
        <a href="#details_fields">Fields</a> | <a href="#details_methods">Methods</a> | <a href="#details_constructor">Constructor</a>
    </div>
</nav>
            </div>
        </div>
    </div>
    <div class="footer">
        <div class="content">
            <div class="copyright center">Generated by <a href="https://github.com/Greenray/phpAPI" target="_blank">phpAPI</a>: PHP Documentation Creator ver. 6.0 &copy; 2015 - 2016 Greenray</div>
        </div>
    </div>
</body>
</html>
